package com.yz.newspaper.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Value;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 稿件发布记录表
 * </p>
 *
 * @author maike
 * @since 2024-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ManuscriptIssue对象", description = "稿件发布记录表")
public class ManuscriptIssue implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "稿件发布id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    @NotNull
    private Integer userId;

    @ApiModelProperty(value = "发刊媒体")
    @NotNull
    private Integer media;

    @ApiModelProperty(value = "发布者名字")
    @NotNull
    private String username;

    @ApiModelProperty(value = "手机号")
    @NotNull
    private String phone;

    @ApiModelProperty(value = "稿件标题")
    @NotNull
    private String title;

    @ApiModelProperty(value = "体裁类型")
    @NotNull
    private String type;

    @ApiModelProperty(value = "点击量")
    private Integer hitsNum;

    @ApiModelProperty(value = "是否配图")
    private Boolean isPicture;

    @ApiModelProperty(value = "是否配视频")
    private Boolean isVideo;

    @ApiModelProperty(value = "是否获得当日等级稿")
    private String grade;

    @ApiModelProperty(value = "是否在第三方平台上稿（写是哪个平台）")
    private String thirdPlatform;

    @ApiModelProperty(value = "是否由领导安排节假日，双休日重大采访")
    private Boolean isHoliday;

    @ApiModelProperty(value = "联合署名人数")
    private BigDecimal unitNum;

    @ApiModelProperty(value = "是第几作者")
    private String unGrade;

    @ApiModelProperty(value = "发布时间")
    @NotNull
    private LocalDate upTime;

    @ApiModelProperty(value = "分数总和")
    @NotNull
    private BigDecimal sumScore;
    @ApiModelProperty(value = "这个后端自动生成的，不用写")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "刊发栏目")
    private String publishColumn;
}
